
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Examen Java</title>
<style type="text/css">
</style>
</head>
<body bgcolor="#FFCCCC">

	<form id="encuestaid" action="ExamenServlet" method="post">
		<center>
			<table width="94%" align="center" bgcolor="crimson">

				<tr>
					<td width="11%"><span class="stylemh">Bienvenido</span></td>
					<td width="57%"><div align="center">
							<span class="style1"><marquee>${alumno.nombre}
									${alumno.apellido} Fecha: ${examen.fechaFormateada}</marquee></span>
						</div></td>
				</tr>

				<tr>
					<td width="11%"><span class="stylemh">TEORICO...</span></td>
					<td width="57%"><div align="center">
							<span class="style1"><marquee> CURSO DE
									PROGRAMACION EN JAVA </marquee></span>
						</div></td>
				</tr>
			</table>
		</center>
		<br> <br>


		<c:forEach items="${preguntas}" var="preg">

			<center>
				<table border="0" width="94%" rules="none" bgcolor="hotpink">

					<tr>
						<td width="13%">&nbsp;</td>
						<td width="89%">&nbsp;</td>
					</tr>
					<tr>
						<td valign="top">
							<div align="CENTER">
								<span class="style13">
									${preg.nroPregunta}
								</span>
							</div>
						</td>
						<td bgcolor="hotpink">
							<span class="styleq">${preg.pregunta}</span>
						</td>
					</tr>

					<c:forEach items="${preg.respuestas}" var="resp">
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>
								<div align="center">
									<span class="style3">
										${resp.letra}
										<input type="radio" value="${resp.letra}" name="${preg.nroPregunta}" />
									</span>
								</div>
							</td>
							<td bgcolor="hotpink">
								<span class="style3">${resp.respuesta}</span>
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
					</c:forEach>

					

				</table>
			</center>
			<br>

		</c:forEach>

		<br> <br>
		<center>
			<input type="submit" value="Enviar cuestionario"
				style="height: 3.5em; width: 10em; font-family: negrita, Arial; font-size: 20px;">
		</center>

		<br>

	</form>
</body>
</html>
